home *** CD-ROM | disk | FTP | other *** search
/ PC Play 128 / pc play 128.iso / Demo / xmr / xmr.exe / {app} / Shaders / ps / ps2_0_shadow_project_pcf.psh < prev    next >
Encoding:
Text File  |  2006-05-06  |  1.4 KB  |  65 lines

  1. //
  2. // Generated by Microsoft (R) D3DX9 Shader Compiler 9.04.91.0000
  3. //
  4. //   fxc /T ps_2_0 /DCGC=0 /Fc
  5. //    ..\..\WorkDir\Shaders\ps\ps2_0_shadow_project_pcf.psh
  6. //    ps2_0_shadow_project_pcf.cg
  7. //
  8. //
  9. // Parameters:
  10. //
  11. //   sampler2D $SrcShadowMap;
  12. //   float $fTexelSize;
  13. //
  14. //
  15. // Registers:
  16. //
  17. //   Name          Reg   Size
  18. //   ------------- ----- ----
  19. //   $fTexelSize   c0       1
  20. //   $SrcShadowMap s0       1
  21. //
  22.  
  23.     ps_2_0
  24.     def c1, 0, 0.111111112, 0, 0
  25.     def c2, 1, -1, 0, 0
  26.     def c3, -1, 1, 0, 0
  27.     dcl t0.xy
  28.     dcl_2d s0
  29.     texld r0, t0, s0
  30.     mov r1.y, -c0.x
  31.     mov r1.x, c1.x
  32.     add r8.x, r1.y, t0.x
  33.     add r8.y, r1.x, t0.y
  34.     add r6.xy, r1, t0
  35.     mov r1.y, c0.x
  36.     mov r1.x, c1.x
  37.     add r7.x, r1.y, t0.x
  38.     add r7.y, r1.x, t0.y
  39.     add r3.xy, r1, t0
  40.     add r5.xy, t0, -c0.x
  41.     mov r1.w, c0.x
  42.     mad r4.xy, r1.w, c2, t0
  43.     mad r2.xy, r1.w, c3, t0
  44.     add r1.xy, t0, c0.x
  45.     texld r8, r8, s0
  46.     texld r7, r7, s0
  47.     texld r6, r6, s0
  48.     texld r5, r5, s0
  49.     texld r4, r4, s0
  50.     texld r3, r3, s0
  51.     texld r2, r2, s0
  52.     texld r1, r1, s0
  53.     add r0, r0, r8
  54.     add r0, r7, r0
  55.     add r0, r6, r0
  56.     add r0, r5, r0
  57.     add r0, r4, r0
  58.     add r0, r3, r0
  59.     add r0, r2, r0
  60.     add r0, r1, r0
  61.     mul r0, r0, c1.y
  62.     mov oC0, r0
  63.  
  64. // approximately 34 instruction slots used (9 texture, 25 arithmetic)
  65.